package pl.edu.agh.anomalyids.network.header;

public enum HttpMethod {
	OPTIONS, GET, HEAD, POST, PUT, DELETE, TRACE, CONNECT, UNKNOWN;
	
	public static HttpMethod getValue(String value){
		try {
			return HttpMethod.valueOf(value.toUpperCase());
		}
		catch (IllegalArgumentException e){
			return HttpMethod.UNKNOWN;
		}
	}
}
